import { Component, OnInit } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { ResultList } from '../result-list';
import { RequestMapping } from '../request.mapping';

@Component({
  selector: 'app-img',
  templateUrl: './img.component.html',
  styleUrls: ['./img.component.css']
})
export class ImgComponent implements OnInit {
  isCollapsed = false;
  page: any;

  _dataSet = [];
  _allChecked = false;
  _indeterminate = false;
  constructor(private http:HttpClient) { }

  ngOnInit() {
    this.loadData();
    
  }

  private loadData() {
    this.http.get<ResultList>(RequestMapping.MEDICALIMGS).subscribe(response => {
      this._dataSet = response.data;
    })
  }


}
